#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int F(int a)
{
	if (a == 1)
		return 1;
	if (a >= 1)
		return  (F(a - 1) + 1) * 2;
}

int main()
{
	int n = 0;
	scanf("%d", &n);
	int num = F(n);
	printf("%d\n", num);
	return 0;
}